package cn.ddiancan.xddcloud.psc.lookup.feign;

import java.util.List;

import cn.ddiancan.xddcloud.common.entity.CommonResult;
import cn.ddiancan.xddcloud.psc.lookup.domain.LookupClassifyVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "lookupRemoteService", value = LookupRemoteService.targetService)
public interface LookupRemoteService {

    String targetService = "xddcloud-psc";

    @GetMapping("/psc/lookup/classifyCode/{classifyCode}/{appName}")
    CommonResult<LookupClassifyVO> findLookupByClassifyCode(@PathVariable("classifyCode") String classifyCode,@PathVariable("appName") String appName);

    @GetMapping("/psc/lookup/all-classifyCode/{appName}")
    CommonResult<List<LookupClassifyVO>> getAllClassifies(@PathVariable("appName") String appName);
}
